<script type="text/javascript">
	<!-- $(".carousel-item div:first-child").addClass("active"); -->
	$('div[data-active="<?php echo $key;?>"]').addClass('active');
	$('li[data-slide-to="<?php echo $key;?>"]').addClass('active');
</script>